from django.urls import path,re_path
from rest_framework_simplejwt.views import TokenObtainPairView, TokenRefreshView
from .views import CustomTokenObtainPairView,UserAPIView
from .utils import PhoneApiView

urlpatterns = [
    path('token/', CustomTokenObtainPairView.as_view(), name='token_obtain_pair'),
    path('token/refresh/', TokenRefreshView.as_view(), name='token_refresh'),
    path('reg/', UserAPIView.as_view()),
    re_path(r"phone/(?P<phone>1[3-9]\d{9})/", PhoneApiView.as_view())
]